{# src/IFI/Symfony2Bundle/Resources/views/Default/index.html.twig #}

{% extends 'IFISymfony2Bundle:ReseauSocial:layout.html.twig' %}

{% block main_content %}
	{% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
		<h2>Postez un article</h2>
		{{form(form)}} 
	{% else %}
		<h2><a href="{{ path('fos_user_security_login') }}">Vous devez être connecté</a></h2>
		
	{% endif %}
{% endblock main_content %}
